# README

Author: Thomas S Robinson (thomas.robinson[at]durham.ac.uk)
15 December 2021

These replication files contain the R code and data required to replicate all results, tables, and figures reported in the main text and online appendices of the paper ``When do voters respond to campaign finance disclosure? Evidence from multiple election types" by Thomas S. Robinson.


## Instructions

All code required to execute the analysis is contained within the script `main_replication.R`.

Custom functions used for the analysis and presentation of results are stored separately within the `conjoint_functions.R` script, and are sourced automatically into the main replication script.

Figures and tables will be saved into separate subdirectories (included for reference with these materials).


## Data

All data is stored in the `data` folder. There are three main data files corresponding to the three separate conjoint experiments (two candidate experiments and one initiative experiment). Data on states' partisan composition taken from Gallup, which is used to assess the Democratic lean of the sample, is contained in the `gallup_lean.csv` file.


## Software

All results were generated using R 4.1.2 on a 2017 Macbook Pro (macOS 11.3.1), using the following packages:

nnet v7.3-16
cregg v0.4.0
tidyverse v1.3.1
dotwhisker v0.7.4
miceadds v3.11-6
broom v0.7.10
xtable v1.8-4
stargazer v5.2.2
sandwich v3.0-1
Hmisc v4.6-0
qualtRics v3.1.5



